﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="admin_activity.aspx.cs" Inherits="Lawyer.Web.Admin.admin_activity" Title="Legal Firm Management System V1.0" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
<div class="main-content">
                        <header>
                                <ul class="action-buttons clearfix">
                              <li><asp:Button CssClass="button " ID="btnAdd" runat="server" Text="New Activity" onclick="btnAdd_Click" 
                                      ></asp:Button></li>
                                <li ><asp:Button CssClass="button " ID="btnDelete" runat="server" Text="Delete" onclick="btnDelete_Click" 
                                            ></asp:Button></li>

                          </ul>
                        
                            <h2>Activity</h2>
                        </header>
                        
                        <section class="container_6 clearfix">
                            <div class="grid_6"> 
                            <asp:GridView CssClass="display" ID="ActivityList" runat="server" 
                                    AutoGenerateColumns="False" DataKeyNames="ActivityID" 
                                    onrowcommand="ActivityList_RowCommand" 
                                    onrowdatabound="ActivityList_RowDataBound">
                                <Columns>
                                    <asp:TemplateField  HeaderText="Choose" >
                                        <ItemTemplate>
                                            <asp:CheckBox ID="DeleteThis" onclick="javascript:CCA(this);" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="ActivityID" HeaderText="Activity ID" Visible = "false"/>
                                    <asp:BoundField DataField="Title" HeaderText="Title"/>
                                    <asp:BoundField DataField="Type" HeaderText="Type" />
                                    <asp:BoundField DataField="StartDate" HeaderText="Start Time" />
                                    <asp:BoundField DataField="EndDate" HeaderText="End Time" />
                                    <asp:BoundField DataField="Fee" HeaderText="Fee(￡)" />
                                    <asp:HyperLinkField HeaderText="Details" ControlStyle-Width="50" 
                                        DataNavigateUrlFields="ActivityID" ItemStyle-CssClass="zoombox"
                                        DataNavigateUrlFormatString="admin_activityshow.aspx?id={0}" Text="Details">
                                    </asp:HyperLinkField>
                                    <asp:HyperLinkField HeaderText="Edit" 
                                        DataNavigateUrlFields="ActivityID" 
                                        DataNavigateUrlFormatString="admin_activitymodify.aspx?id={0}" Text="Edit">
                                    </asp:HyperLinkField>
                                    <asp:TemplateField HeaderText="Status">
                                      <ItemTemplate>
                                       <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                                      </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                </asp:GridView>
                                
                            </div> 
			
                            
                       
                        </section>
                    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBar" runat="server">
<nav>
    <a class="chevron" href="#">&raquo;</a>
    <ul>
                                <li><a href="admin_activityadd.aspx">New Activity</a></li>
                                <li><a href="admin_activity.aspx">All List</a></li>
                                <li><a href="admin_activity.aspx?status=1"> To do list</a></li>
                                <li><a href="admin_activity.aspx?status=2">Job done List</a></li>
                                <li><a href="admin_activitytype.aspx">Activity Type</a></li>                                
    </ul>
</nav>
</asp:Content>